import threading
import time

"""
双线程
"""

def workerer():
    for _ in range(3):
        time.sleep(1)
        print('hello,world')
    print('threading over')

def workerer02():
    for _ in range(3):
        time.sleep(3)
        print('hello,world02')
    print('threading over02')


t = threading.Thread(target=workerer, name='w1')
t.start()

t = threading.Thread(target=workerer02, name='w2')
t.start()